package com.sam.spring.test;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Jungle {

	private Map<String, String> foods = new HashMap<String, String>();
	private Map<String, Animal> animals = new HashMap<String, Animal>();

	public Map<String, String> getFoods() {
		return foods;
	}

	public void setFoods(Map<String, String> foods) {
		this.foods = foods;
	}
	

	public void setAnimals(Map<String, Animal> animals) {
		this.animals = animals;
	}

	public String toString() {

		StringBuilder sb = new StringBuilder();

		for (Map.Entry<String, String> entry : foods.entrySet()) {
			sb.append(entry.getKey() + ": " + entry.getValue() + "\n");
			
		}
		sb.append("\n");
		
		for (Map.Entry<String, Animal> entry : animals.entrySet()) {
			sb.append(entry.getKey() + ": " + entry.getValue() + "\n");
			
		}
		
		return sb.toString();
	}


}
